import React from 'react';
import { axconst } from '@/shared/axconst';
import { AxStandardWideList } from '@/components/AxList/AxStandardWideList';
import Search from './components/search';

const Index: React.FC<any> = props => {
  /** 配置列 */
  const columns = [
    {
      title: '出库单号',
      dataIndex: 'outNumber',
      width: axconst.width.long,
    },
    {
      title: '物资名称',
      dataIndex: 'material',
      width: axconst.width.material,
    },
    {
      title: '物资编码',
      dataIndex: 'materialCode',
      width: axconst.width.materialCode,
    },
    {
      title: '领用人',
      dataIndex: 'receiver',
      width: axconst.width.threeonly,
    },
    {
      title: '领用量',
      dataIndex: 'receiveAmount',
      width: axconst.width.fouronly,
    },
    {
      title: '返库量',
      dataIndex: 'useAmount',
      width: axconst.width.fouronly,
    },
    {
      title: '返库时间',
      dataIndex: 'receiveTime',
      width: axconst.width.time,
    },
  ];

  return (
    <>
      <AxStandardWideList
        columns={columns}
        data={{...axconst.data}}
        AdvancedSearch={Search}
      />
    </>
  );
};

export default Index;
